#include "app_common.h"
#include "time.h"
#include <stdio.h>
int main(int argc, char const *argv[])
{
    // 测试获取当前时间的毫秒数
    long currentTimeMillis = app_common_getCurrentTimeMillis();
    printf("Current time in milliseconds: %ld\n", currentTimeMillis);
    //将当前时间毫秒数转换为时间字符串
    struct tm *tm_info;
    time_t time_seconds = currentTimeMillis / 1000;
    tm_info = localtime(&time_seconds);
    char timeString[26];
    strftime(timeString, sizeof(timeString), "%Y-%m-%d %H:%M:%S", tm_info);
    printf("Current time: %s\n", timeString);
    return 0;
}
